package nml.mail.reg.smtp;
import nml.mail.reg.Reg;

import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.chrome.ChromeDriver;

public class  mspil_cn extends Reg{

	public void reg(String username, String password) {		
		

		String url = "http://mypil.mspil.cn/UserPortal/Login/Register.aspx";
		get(url);
		
		dr.findElement(By.name("txtLiveId")).sendKeys(username);
		dr.findElement(By.name("txtPassword")).sendKeys(password);
		dr.findElement(By.name("txtRePassword")).sendKeys(password);
		
		dr.findElement(By.name("txtChineseName")).sendKeys("成兄");
		dr.findElement(By.name("txtSchool")).sendKeys("社会大学");
		dr.findElement(By.name("txtAddress")).sendKeys("xxxx路社会大学");
		
		dr.findElement(By.name("txtZipCode")).sendKeys("130503");
		dr.findElement(By.name("ddlProvince")).sendKeys("河北省");
		sleep(1000);
		dr.findElement(By.name("ddlCity")).sendKeys("邢台市");
		sleep(1000);
		dr.findElement(By.name("ddlCounty")).sendKeys("桥西区");
		
		dr.findElement(By.name("txtBorough")).sendKeys("0736");
		dr.findElement(By.name("txtPhone")).sendKeys("66363223");
		
		dr.findElement(By.name("txtEmail")).sendKeys("nml186@126.com");
		
		dr.findElement(By.name("ddlLeadshipOne")).sendKeys("学生");
		
		
	 
		
		
		System.out.println(username+"@sina.cn");
	}

	public static void main(String[] args) {
		new mspil_cn().reg("qq331798654", "qq3131798654");
	}
	
	
}
